﻿<%@ Page Language="C#" MasterPageFile="~/A_LetsDeal/MasterPage.master" AutoEventWireup="true" CodeFile="giohang.aspx.cs" Inherits="A_LetsDeal_giohang"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
 <div style="float:right;">
            <asp:Button CssClass="buttonsearch" Text="Tìm kiếm" runat="server" 
                  ID="bt_timkiem" onclick="bt_timkiem_Click"/>
                </div>            
            <div style="float:right;">
            <asp:TextBox ID="txt_timkiem"  CssClass="textsearch" runat="server"/>
            </div>
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="tieude" style="margin-top:-32px;background-color:white;">
            <div class="tieude-text" style="color:Black">GIỎ HÀNG</div></div>
<div class="noidung"> 
<div style="padding:12px 12px 12px 12px ;">
    <div style="color:white"> 
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        <center>                
            <asp:Repeater ID="Repeater1" runat="server" 
                onitemdatabound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" cellspacing="1" cellpadding="3" border="0">
            <tr>
                <td style="width:10%;border:solid 1px #808080;background-color:Blue;text-align:center;">
                Mã sản phẩm
                </td>
                <td style="width:30%;border:solid 1px #808080;background-color:Blue;text-align:center;">
                Tên sản phẩm
                </td>
                <td style="width:20%;border:solid 1px #808080;background-color:Blue;text-align:center;">
                Giá bán
                </td>
                <td style="width:20%;border:solid 1px #808080;background-color:Blue;text-align:center;">
                Số lượng
                </td>
                <td style="width:20%;border:solid 1px #808080;background-color:Blue;text-align:center;">
                Thành tiền
                </td>
                </tr>
            </HeaderTemplate>
            
            <ItemTemplate>
            <tr>
                <td style="width:10%;border:solid 1px #808080;text-align:center;">
                <a href="thongtinsanpham.aspx?id=<%#Eval("STT_SanPham") %>"><%#Eval("STT_SanPham")%></a>
                </td>
                <td style="width:30%;border:solid 1px #808080;padding-left:15px;">
                <font color="blue"><%#Eval("TENSP") %></font>
                </td>
                <td style="width:20%;border:solid 1px #808080;text-align:center;">
                <font color="blue"><%#Eval("GIABAN") %>đ</font>
                </td>
                <td style="width:20%;border:solid 1px #808080;vertical-align:top;text-align:center;">
                <font color="red"><asp:Label ID="lit_thongbao" runat="server" Text="Số voucher bạn đặt:"></asp:Label></font>
                <font color="blue"><asp:TextBox ID="txt_sl" runat="server" Text=<%#Eval("SOLUONG") %> Width="30px" ></asp:TextBox></font>
                <asp:ImageButton ID="thay_doi" runat="server" OnClick="click_ne" ImageUrl="~/Photos/icon_f5.jpg" Width="15" Height="15"/>
                </td>
                <td style="width:20%;border:solid 1px #808080;vertical-align:top;text-align:center;">
                <font color="blue"><%#Eval("THANHTIEN") %>đ</font>
                </td>
            </tr>
            </ItemTemplate>
                
            <FooterTemplate>
            <tr>
                <td style="width:20%;border:solid 1px #808080;padding-left:15px;">
                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/A_LetsDeal/Default.aspx">Tiếp tục</asp:LinkButton>
                </td>
                <td style="width:60%;border:solid 1px #808080;padding-left:15px;" colspan="2">
                <font color="Red">TỔNG TRỊ GIÁ:<asp:Literal ID="lit_tongtrigia" runat="server"></asp:Literal></font>
                </td>
                <% if (Session["username"] != null)
                   { %>
                <td style="width:20%;border:solid 1px #808080;vertical-align:top;text-align:center;" colspan="2">
                <asp:HyperLink ID="LinkButton2" runat="server" NavigateUrl="~/A_LetsDeal/dathang.aspx">Đặt hàng</asp:HyperLink>
                </td>
                <% }
                   else
                   {%>
                <td style="width:20%;border:solid 1px #808080;text-align:center;vertical-align:top" colspan="2">
                <font color="red">Bạn chưa đăng nhập không thể đặt hàng</font>
                </td>
                <% } %>
                </tr>
            </table>
            </FooterTemplate>
            </asp:Repeater>
            <asp:Button ID="Button1" runat="server" Text="Hủy Giỏ Hàng" 
                onclick="Button1_Click" />
        </center>
    </div>
 </div>
 </div>
</asp:Content>

